package com.csx.micrometer.database.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * @author cuisongxu
 * @date 2023/3/14 19:41
 */
@Data
@ConfigurationProperties(prefix = "micrometer.database")
public class MicrometerDatabaseProperties {

    Map<String, Database> databases;

    @Data
    public static class Database {

        private String name;

        private String driverClassName;

        private String url;

        private String username;

        private String password;

        private String tableName;

        private String region;

        private String zone;
    }
}
